package com.mall.model.dto;
//封装添加产品类别的请求信息

import lombok.Data;
import lombok.ToString;

import javax.validation.constraints.Max;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

@Data
@ToString
public class UpdateCategoryRequest {
    @NotNull(message = "产品类别id不能为null")
    private Integer id;
    @Size(max = 5,min = 2,message = "长度介于2-5之间")
    private String name;
    @Max(value=3,message = "目录层级不能超过3级")
    private Integer type;
    //    父目录id
    private Integer parentId;
    //排序字段
    private Integer orderNum;
}
